package com.bingxue.edu.management.system.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.time.LocalDateTime;

@Data
@Schema(description = "修改字典信息")
public class DictUpdateReq {

    @Schema(description = "名称")
    @NotBlank(message = "名称不能为空")
    @Length(max = 64, message = "名称长度不能超过 {max} 个字符")
    private String name;

    @Schema(description = "是否预置")
    private Boolean reserved;

    @Schema(description = "描述")
    @Length(max = 900, message = "描述长度不能超过 {max} 个字符")
    private String description;

    @Schema(description = "创建人")
    @Length(max = 32, message = "创建人长度不能超过 {max} 个字符")
    private String createUser;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
